<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <!-- 导入样式表 -->
    <link rel="stylesheet" href="./assets/news.css" />
  </head>

  <body>
    <!-- 新闻列表 -->
    <div id="news-list"></div>

    <!-- 导入axios -->
    <script src="./lib/axios.js"></script>
    <script src="./js/index.js"></script>
    <script>
      // 请求地址：http://ajax-api.itheima.net/api/news
      // 获取dom元素
      // const newlist = document.querySelector('#news-list')
      // const renderlist =  async() => {
      //   cont { data: res }= await axios.get('http://ajax-api.itheima.net/api/news')
      //  console.log(res)
      // }
      // renderlist()
    </script>
  </body>
</html>
